
package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type SystemFileRequest struct {

	Cthash string `json:"cthash" form:"cthash"`

	Filename string `json:"filename" form:"filename"`

	Atime string `json:"atime" form:"atime"`

	Mtime string `json:"mtime" form:"mtime"`

	Ctime string `json:"ctime" form:"ctime"`

}

func (r *SystemFileRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *SystemFileRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{

		"cthash": "required",

		"filename": "required",

		"atime": "required",

		"mtime": "required",

		"ctime": "required",

	}
}

func (r *SystemFileRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *SystemFileRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *SystemFileRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
